using System;
using Server;
using Server.Items;
using Server.Spells;
using Server.Spells.Seventh;
using Server.Spells.Fifth;
using System.Collections.Generic;

namespace Server.Mobiles
{
    [CorpseName( "Fire Daemon [Renowned] corpse" )]  
    public class FireDaemonRenowned : BaseRenowned
	{
        public override Type[] UniqueSAList{ get { return new Type[] {typeof( ResonantStaffofEnlightenment), typeof( MantleOfTheFallen)};}}
        public override Type[] SharedSAList{ get { return new Type[] {typeof( DaemonClaw ), typeof( LavaSerpenCrust ), typeof( LegacyOfDespair)}; } }

		public override WeaponAbility GetWeaponAbility()
		{
			return WeaponAbility.ConcussionBlow;
		}

		[Constructable]
		public FireDaemonRenowned() : base( AIType.AI_Mage )
		{
			Name = "Fire Daemon";
			Title = "[Renowned]";
			Body = 40;
			BaseSoundID = 357;

            Hue = 243;

			SetStr( 800, 1199 );
			SetDex( 200, 250 );
			SetInt( 202, 336 );

			SetHits( 1111, 1478 );

			SetDamage( 22, 29 );

			SetDamageType( ResistanceType.Physical, 50 );
			SetDamageType( ResistanceType.Fire, 25 );
			SetDamageType( ResistanceType.Energy, 25 );

			SetResistance( ResistanceType.Physical, 60, 93 );
			SetResistance( ResistanceType.Fire, 60, 100 );
			SetResistance( ResistanceType.Cold, 40, 70 );
			SetResistance( ResistanceType.Poison, 100 );
			SetResistance( ResistanceType.Energy, 37, 50 );

			SetSkill( SkillName.MagicResist, 110.1, 132.6 );
			SetSkill( SkillName.Tactics, 86.9, 95.5 );
			SetSkill( SkillName.Wrestling, 42.2, 98.8 );
			SetSkill( SkillName.Magery, 97.1, 100.8 );
			SetSkill( SkillName.EvalInt, 91.1, 91.8 );
			SetSkill( SkillName.Meditation, 45.4, 94.1 );
			SetSkill( SkillName.Anatomy, 45.4, 74.1 );

			Fame = 7000;
			Karma = -10000;

			VirtualArmor = 55;
                        
            PackItem( new EssencePassion() );
		}

		public override void GenerateLoot()
		{
			AddLoot( LootPack.Average, 2 );
		}
		
		public FireDaemonRenowned( Serial serial ) : base( serial )
		{
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 0 );
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
		}
	}
}